import request from '@/utils/axios'

// 消息列表
export function getWarningList(params: any) {
  return request.post({
    url: '/eprofile-web/api/notice/info/page',
    data: params
  })
}

// 备注
export function setRemark(params: any) {
  return request.post({
    url: '/eprofile-web/api/notice/info/remark',
    data: params
  })
}

// 已读
export function readed(params: any) {
  return request.get({
    url: '/eprofile-web/api/notice/info/read',
    params: params
  })
}

// 任务详情
export function getByDetailIdByWeb(params: any) {
  return request.get({
    url: `/eprofile-web/api/task/detail/getByDetailIdByWeb?empi=${params.empi}&detailId=${params.detailId}`
  })
}

// 健康监测任务删除校验
export function taskDeleteCheck(params: any) {
  return request.post({
    url: `/eprofile-web/api/signs/info/check/data`,
    data: params
  })
}
